/**
YASTACS core systems interface.

Authors: Kalman Kiss, kiskami@freemail.hu

Copyright:

Bugs:

Date: 

License: GNU General Public License

	YASTACS game
    Copyright (C) 2012 Kalman Kiss, kiskami@freemail.hu

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
	Contact author at: kiskami@freemail.hu or
					Hungary, 8900 Zalaegerszeg
					Kakukkfu u 4.
*/
import rendering.RenderSystem;
import gui.Gui;
import input.SystemInput;
import client.Client;

/// gamestates
enum eGameStates { 
	STARTUP
	, INTRO
	, STARTMENU
	, INGAME
	, INGAMEOPTIONS
	, EXIT
	, ABOUT 
};

interface iCore {

	/// gamestate switch signaling
	void toGameState(eGameStates from, eGameStates to);
	
	void endMainLoop();
	void windowFocusChange();

	@property RenderSystem rendersystem();
	
	@property Gui gui();

	@property SystemInput input();

	// a kliens regisztráció, hogy a core tudja használni
	@property void client(Client c);

}

interface GameState {
	void initialize();
	
	void update(real elapsedTime);

	void pause();
	void restart();

	void deinitialize();
}
